##
# Nginx
#
# VERSION 1.6.2
# 
# use the ubuntu base image
##


FROM ubuntu:14.04
MAINTAINER Sean<sean.snow@live.com>

#Add 163 sources.list
ADD 163.sources.list /etc/apt/sources.list

RUN apt-get update && apt-get install -y nginx

RUN pip install supervisor
ADD supervisord.conf /etc/supervisord.conf

RUN mkdir -p /etc/supervisor.conf.d && \
	mkdir -p /etc/var/log/supervisor

# 80 and 443 port
EXPOSE 80
EXPOSE 443

ENTRYPOINT ["/usr/bin/supervisord","-n","-c","/etc/supervisord.conf"]
